<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录 - 老年人健康档案服务平台</title>
    <link href="https://cdn.jsdelivr.net/npm/remixicon@2.5.0/fonts/remixicon.css" rel="stylesheet">
    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body>
    <div class="login-container">
        <div class="login-background"></div>
        <div class="login-box">
            <div class="login-icon">
                <i class="ri-heart-pulse-fill"></i>
            </div>
            <h1>老年人健康档案服务平台</h1>
            <form method="POST" action="{{ url_for('login') }}" class="login-form">
                {% with messages = get_flashed_messages() %}
                    {% if messages %}
                        <div class="error-message">
                            <i class="ri-error-warning-line"></i>
                            {{ messages[0] }}
                        </div>
                    {% endif %}
                {% endwith %}
                <div class="form-group">
                    <div class="input-icon">
                        <i class="ri-user-line"></i>
                        <input type="text" id="username" name="username" placeholder="请输入用户名" required>
                    </div>
                </div>
                <div class="form-group">
                    <div class="input-icon">
                        <i class="ri-lock-line"></i>
                        <input type="password" id="password" name="password" placeholder="请输入密码" required>
                    </div>
                </div>
                <button type="submit">
                    <i class="ri-login-circle-line"></i>
                    登录
                </button>
            </form>
            <div class="login-footer">
                <p>© 2024 老年人健康档案服务平台</p>
            </div>
        </div>
    </div>
</body>
</html> 